package com.mengwen.backstage.mapper;

import com.mengwen.backstage.pojo.Notification;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author LiangYonghui
 * @date 2020/4/8 15:44
 * @description 通知数据访问层
 */
@Mapper
@Repository
public interface NotificationMapper {
    @Insert("INSERT INTO notification (tosmapp,topc,openid,unionid,notification_id,content,notice_date,nickname) " +
            " VALUES(#{tosmapp},#{topc},#{openid},#{unionid},#{notificationId},#{content},#{noticeDate},#{nickname})")
    int addNotification(Notification notification);
}
